//api文件仍保留但不建议使用，推荐使用models中的api。API files remain preserved (deprecated), use models APIs instead.
import type { MinishopOrderStatus, MinishopOrderStatusResponse } from './types.js';

import { requestClient } from '#/api/request';

export const getuctooMinishopOrderStatusList = async (page: number, pageSize: number,
  searchParams?: any) => {
  return requestClient.get<MinishopOrderStatusResponse>(`/uctoo/minishop_order_status/${pageSize}/${page}`,{
    params: searchParams,
  });
};

export const getuctooMinishopOrderStatus = async (id: string) => {
  return requestClient.get<MinishopOrderStatus>(`/uctoo/minishop_order_status/${id}`);
};

export const adductooMinishopOrderStatus = async (data: Partial<MinishopOrderStatus>) => {
  return requestClient.post<MinishopOrderStatus>('/uctoo/minishop_order_status/add', data);
};

export const edituctooMinishopOrderStatus = async (data: Partial<MinishopOrderStatus>) => {
  return requestClient.post<MinishopOrderStatus>('/uctoo/minishop_order_status/edit', data);
};

export const deleteuctooMinishopOrderStatus = async (id: string) => {
  return requestClient.post<any>('/uctoo/minishop_order_status/del', { id });
};
